<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class UserFriends extends Model
{

    protected $table = 'st_user_friends';

    protected $fillable = [
        'user_account', 'f_user_account', 'type','memo_name'
    ];


    /**
     * 获取与用户关联的用户信息
     */
    public function user()
    {
        return $this->hasOne('App\Models\UserBase','account','f_user_account');
    }


}
